package com.day18me.java;

import com.day18me.Test.Employee;

import java.util.HashSet;
import java.util.Set;

public class EmployeeTest {
    public static void main(String[] args) {
        Set set = new HashSet();

        Employee2 employee1 = new Employee2("张三","男",22);
        Employee2 employee2 = new Employee2("李四","男",4);
        Employee2 employee3 = new Employee2("小黑","男",423);
        Employee2 employee4 = new Employee2("小黑","男",423);

        set.add(employee1);
        set.add(employee2);
        set.add(employee3);
        set.add(employee4);
        System.out.println(set);

    }
}
